package com.czh.springboot04.service;

import com.czh.springboot04.entity.Consult;
import com.github.pagehelper.PageInfo;

import java.util.HashMap;
import java.util.List;

public interface ConsultService {
    int add(Consult consult);
    int edit(Consult consult);
    int delete(int id);
    Consult findById(int id);

    List<Consult> findAllReally();
    PageInfo<Consult> findAll(int pageNum, int pageSize, Consult consult);

    //根据name查询
    Consult findConsultByName(String name);

    List <HashMap<String,Object>> getCount();

    PageInfo<Consult> findAllByUserId(int pageNum, int pageSize);

}
